﻿//===========================[ 7 / 6 / 2011 LVI ]=============================
//				Copyright c Vitaly Lyaschenko <SkyChameleon@gmail.com>
//								Source file
// Purpose: 
//=============================================================================
#include "cLight.h"

cLight::cLight()
{

}

cLight::~cLight()
{

}

void cLight::LightDefault( const LightType type )
{
	this->type = type;

	ambient      ( 0.0f, 0.0f, 0.0f, 1.0f );
	diffuse      ( 1.0f, 1.0f, 1.0f, 1.0f );
	specular     ( 1.0f, 1.0f, 1.0f, 1.0f );
	position     ( 0.0f, 0.0f, 1.0f, 0.0f );
	attenuation  ( 1.0f, 0.0f, 0.0f );
	spotDirection( 0.0f, 0.0f,-1.0f );
	spotExponent  = 0.0f;
	spotCosCutoff =-1.0f; // cos 180 градусов == -1
}